import { RoutesAlias } from '../routesAlias'
import { AppRouteRecord } from '@/types/router'

/**
 * 菜单列表、异步路由
 *
 * 支持两种模式:
 * 1. 前端静态配置 - 直接使用本文件中定义的路由配置
 * 2. 后端动态配置 - 后端返回菜单数据，前端解析生成路由
 *
 * 菜单标题（title）:
 * 可以是 i18n 的 key，也可以是字符串，比如：'用户列表'
 */
export const asyncRoutes: AppRouteRecord[] = [
  {
    id: 1,
    name: 'Dashboard',
    path: '/dashboard',
    component: RoutesAlias.Home,
    meta: {
      title: 'menus.dashboard.title',
      icon: '&#xe721;'
    },
    children: [
      {
        id: 111,
        path: 'console',
        name: 'Console',
        component: RoutesAlias.Dashboard,
        meta: {
          title: 'menus.dashboard.console',
          keepAlive: false,
          fixedTab: true
        }
      },
      // {
      //   path: 'analysis',
      //   name: 'Analysis',
      //   component: RoutesAlias.Analysis,
      //   meta: {
      //     title: 'menus.dashboard.analysis',
      //     keepAlive: false
      //   }
      // },
      {
        id: 112,
        path: 'ecommerce',
        name: 'Ecommerce',
        component: '',
        meta: {
          title: 'menus.dashboard.ecommerce',
          keepAlive: false
        },
        children: [
          {
            id: 1121,
            path: 'channel_wx',
            name: 'Channel_wx',
            component: RoutesAlias.ChannelWX,
            meta: {
              title: 'menus.dashboard.wx',
              icon: '&#xe7f3;',
              keepAlive: true
            }
          },
          {
            id: 1122,
            path: 'applet_wx',
            name: 'applet_wx',
            component: RoutesAlias.ChannelGZH,
            meta: {
              title: 'menus.dashboard.gzh',
              icon: '&#xe742; ',
              keepAlive: true
            }
          },
          {
            id: 1123,
            path: 'channel_pc',
            name: 'Channel_pc',
            component: RoutesAlias.ChannelPC,
            meta: {
              title: 'menus.dashboard.pc',
              icon: '&#xe742; ',
              keepAlive: true
            }
          }
        ]
      },
      {
        id: 113,
        path: 'pay_setting',
        name: 'PaySetting',
        component: RoutesAlias.PaySetting,
        meta: {
          title: '支付配置',
          keepAlive: false,
          fixedTab: true
        }
      }
    ]
  },
  // {
  //   path: '/widgets',
  //   name: 'Widgets',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.widgets.title',
  //     icon: '&#xe81a;'
  //   },
  //   children: [
  //     {
  //       path: 'icon-list',
  //       name: 'IconList',
  //       component: RoutesAlias.IconList,
  //       meta: {
  //         title: 'menus.widgets.iconList',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'icon-selector',
  //       name: 'IconSelector',
  //       component: RoutesAlias.IconSelector,
  //       meta: {
  //         title: 'menus.widgets.iconSelector',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'image-crop',
  //       name: 'ImageCrop',
  //       component: RoutesAlias.ImageCrop,
  //       meta: {
  //         title: 'menus.widgets.imageCrop',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'excel',
  //       name: 'Excel',
  //       component: RoutesAlias.Excel,
  //       meta: {
  //         title: 'menus.widgets.excel',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'video',
  //       name: 'Video',
  //       component: RoutesAlias.Video,
  //       meta: {
  //         title: 'menus.widgets.video',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'count-to',
  //       name: 'CountTo',
  //       component: RoutesAlias.CountTo,
  //       meta: {
  //         title: 'menus.widgets.countTo',
  //         keepAlive: false
  //       }
  //     },
  //     {
  //       path: 'wang-editor',
  //       name: 'WangEditor',
  //       component: RoutesAlias.WangEditor,
  //       meta: {
  //         title: 'menus.widgets.wangEditor',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'watermark',
  //       name: 'Watermark',
  //       component: RoutesAlias.Watermark,
  //       meta: {
  //         title: 'menus.widgets.watermark',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'context-menu',
  //       name: 'ContextMenu',
  //       component: RoutesAlias.ContextMenu,
  //       meta: {
  //         title: 'menus.widgets.contextMenu',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'qrcode',
  //       name: 'Qrcode',
  //       component: RoutesAlias.Qrcode,
  //       meta: {
  //         title: 'menus.widgets.qrcode',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'drag',
  //       name: 'Drag',
  //       component: RoutesAlias.Drag,
  //       meta: {
  //         title: 'menus.widgets.drag',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'text-scroll',
  //       name: 'TextScroll',
  //       component: RoutesAlias.TextScroll,
  //       meta: {
  //         title: 'menus.widgets.textScroll',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'fireworks',
  //       name: 'Fireworks',
  //       component: RoutesAlias.Fireworks,
  //       meta: {
  //         title: 'menus.widgets.fireworks',
  //         keepAlive: true,
  //         showTextBadge: 'Hot'
  //       }
  //     },
  //     {
  //       path: '/outside/iframe/elementui',
  //       name: 'ElementUI',
  //       component: '',
  //       meta: {
  //         title: 'menus.widgets.elementUI',
  //         keepAlive: false,
  //         link: 'https://element-plus.org/zh-CN/component/overview.html',
  //         isIframe: true,
  //         showBadge: true
  //       }
  //     }
  //   ]
  // },
  // {
  //   path: '/template',
  //   name: 'Template',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.template.title',
  //     icon: '&#xe860;'
  //   },
  //   children: [
  //     {
  //       path: 'cards',
  //       name: 'Cards',
  //       component: RoutesAlias.Cards,
  //       meta: {
  //         title: 'menus.template.cards',
  //         keepAlive: false
  //       }
  //     },
  //     {
  //       path: 'banners',
  //       name: 'Banners',
  //       component: RoutesAlias.Banners,
  //       meta: {
  //         title: 'menus.template.banners',
  //         keepAlive: false
  //       }
  //     },
  //     {
  //       path: 'charts',
  //       name: 'Charts',
  //       component: RoutesAlias.Charts,
  //       meta: {
  //         title: 'menus.template.charts',
  //         keepAlive: false
  //       }
  //     },
  //     {
  //       path: 'map',
  //       name: 'Map',
  //       component: RoutesAlias.Map,
  //       meta: {
  //         title: 'menus.template.map',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'chat',
  //       name: 'Chat',
  //       component: RoutesAlias.Chat,
  //       meta: {
  //         title: 'menus.template.chat',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'calendar',
  //       name: 'Calendar',
  //       component: RoutesAlias.Calendar,
  //       meta: {
  //         title: 'menus.template.calendar',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'pricing',
  //       name: 'Pricing',
  //       component: RoutesAlias.Pricing,
  //       meta: {
  //         title: 'menus.template.pricing',
  //         keepAlive: true
  //       }
  //     }
  //   ]
  // },
  // {
  //   path: '/system',
  //   name: 'System',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.system.title',
  //     icon: '&#xe7b9;',
  //     roles: ['R_SUPER', 'R_ADMIN']
  //   },
  //   children: [
  //     {
  //       path: 'user',
  //       name: 'User',
  //       component: RoutesAlias.User,
  //       meta: {
  //         title: 'menus.system.user',
  //         keepAlive: true,
  //         roles: ['R_SUPER', 'R_ADMIN']
  //       }
  //     },
  //     {
  //       path: 'role',
  //       name: 'Role',
  //       component: RoutesAlias.Role,
  //       meta: {
  //         title: 'menus.system.role',
  //         keepAlive: true,
  //         roles: ['R_SUPER']
  //       }
  //     },
  //     {
  //       path: 'user-center',
  //       name: 'UserCenter',
  //       component: RoutesAlias.UserCenter,
  //       meta: {
  //         title: 'menus.system.userCenter',
  //         isHide: true,
  //         keepAlive: true,
  //         isHideTab: true
  //       }
  //     },
  //     {
  //       path: 'menu',
  //       name: 'Menus',
  //       component: RoutesAlias.Menu,
  //       meta: {
  //         title: 'menus.system.menu',
  //         keepAlive: true,
  //         roles: ['R_SUPER'],
  //         authList: [
  //           {
  //             title: '新增',
  //             auth_mark: 'add'
  //           },
  //           {
  //             title: '编辑',
  //             auth_mark: 'edit'
  //           },
  //           {
  //             title: '删除',
  //             auth_mark: 'delete'
  //           }
  //         ]
  //       }
  //     },
  //     {
  //       path: 'nested',
  //       name: 'Nested',
  //       component: '',
  //       meta: {
  //         title: 'menus.system.nested',
  //         keepAlive: true
  //       },
  //       children: [
  //         {
  //           path: 'menu1',
  //           name: 'NestedMenu1',
  //           component: RoutesAlias.NestedMenu1,
  //           meta: {
  //             title: 'menus.system.menu1',
  //             icon: '&#xe676;',
  //             keepAlive: true
  //           }
  //         },
  //         {
  //           path: 'menu2',
  //           name: 'NestedMenu2',
  //           component: '',
  //           meta: {
  //             title: 'menus.system.menu2',
  //             icon: '&#xe676;',
  //             keepAlive: true
  //           },
  //           children: [
  //             {
  //               path: 'menu2-1',
  //               name: 'NestedMenu2-1',
  //               component: RoutesAlias.NestedMenu21,
  //               meta: {
  //                 title: 'menus.system.menu21',
  //                 icon: '&#xe676;',
  //                 keepAlive: true
  //               }
  //             }
  //           ]
  //         },
  //         {
  //           path: 'menu3',
  //           name: 'NestedMenu3',
  //           component: '',
  //           meta: {
  //             title: 'menus.system.menu3',
  //             icon: '&#xe676;',
  //             keepAlive: true
  //           },
  //           children: [
  //             {
  //               path: 'menu3-1',
  //               name: 'NestedMenu3-1',
  //               component: RoutesAlias.NestedMenu31,
  //               meta: {
  //                 title: 'menus.system.menu31',
  //                 icon: '&#xe676;',
  //                 keepAlive: true
  //               }
  //             },
  //             {
  //               path: 'menu3-2',
  //               name: 'NestedMenu3-2',
  //               component: '',
  //               meta: {
  //                 title: 'menus.system.menu32',
  //                 icon: '&#xe676;',
  //                 keepAlive: true
  //               },
  //               children: [
  //                 {
  //                   path: 'menu3-2-1',
  //                   name: 'NestedMenu3-2-1',
  //                   component: RoutesAlias.NestedMenu321,
  //                   meta: {
  //                     title: 'menus.system.menu321',
  //                     icon: '&#xe676;',
  //                     keepAlive: true
  //                   }
  //                 }
  //               ]
  //             }
  //           ]
  //         }
  //       ]
  //     }
  //   ]
  // },
  // {
  //   path: '/article',
  //   name: 'Article',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.article.title',
  //     icon: '&#xe7ae;',
  //     roles: ['R_SUPER', 'R_ADMIN']
  //   },
  //   children: [
  //     {
  //       path: 'article-list',
  //       name: 'ArticleList',
  //       component: RoutesAlias.ArticleList,
  //       meta: {
  //         title: 'menus.article.articleList',
  //         keepAlive: true,
  //         authList: [
  //           {
  //             title: '新增',
  //             auth_mark: 'add'
  //           },
  //           {
  //             title: '编辑',
  //             auth_mark: 'edit'
  //           }
  //         ]
  //       }
  //     },
  //
  //     {
  //       path: 'detail',
  //       name: 'ArticleDetail',
  //       component: RoutesAlias.ArticleDetail,
  //       meta: {
  //         title: 'menus.article.articleDetail',
  //         isHide: true,
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'comment',
  //       name: 'ArticleComment',
  //       component: RoutesAlias.Comment,
  //       meta: {
  //         title: 'menus.article.comment',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'publish',
  //       name: 'ArticlePublish',
  //       component: RoutesAlias.ArticlePublish,
  //       meta: {
  //         title: 'menus.article.articlePublish',
  //         keepAlive: true,
  //         authList: [
  //           {
  //             title: '发布',
  //             auth_mark: 'article/article-publish/add'
  //           }
  //         ]
  //       }
  //     }
  //   ]
  // },
  // {
  //   path: '/result',
  //   name: 'Result',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.result.title',
  //     icon: '&#xe715;'
  //   },
  //   children: [
  //     {
  //       path: 'success',
  //       name: 'ResultSuccess',
  //       component: RoutesAlias.Success,
  //       meta: {
  //         title: 'menus.result.success',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: 'fail',
  //       name: 'ResultFail',
  //       component: RoutesAlias.Fail,
  //       meta: {
  //         title: 'menus.result.fail',
  //         keepAlive: true
  //       }
  //     }
  //   ]
  // },
  // {
  //   path: '/exception',
  //   name: 'Exception',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.exception.title',
  //     icon: '&#xe820;'
  //   },
  //   children: [
  //     {
  //       path: '403',
  //       name: '403',
  //       component: RoutesAlias.Exception403,
  //       meta: {
  //         title: 'menus.exception.forbidden',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: '404',
  //       name: '404',
  //       component: RoutesAlias.Exception404,
  //       meta: {
  //         title: 'menus.exception.notFound',
  //         keepAlive: true
  //       }
  //     },
  //     {
  //       path: '500',
  //       name: '500',
  //       component: RoutesAlias.Exception500,
  //       meta: {
  //         title: 'menus.exception.serverError',
  //         keepAlive: true
  //       }
  //     }
  //   ]
  // },
  //
  // {
  //   name: 'Help',
  //   path: '/help',
  //   component: RoutesAlias.Home,
  //   meta: {
  //     title: 'menus.help.title',
  //     icon: '&#xe719;',
  //     keepAlive: false,
  //     roles: ['R_SUPER', 'R_ADMIN']
  //   },
  //   children: [
  //     {
  //       path: '',
  //       name: 'Document',
  //       meta: {
  //         title: 'menus.help.document',
  //         link: WEB_LINKS.DOCS,
  //         isIframe: false,
  //         keepAlive: false
  //       }
  //     }
  //   ]
  // },
  // // 一级菜单
  // {
  //   name: 'ChangeLog',
  //   path: '/change/log',
  //   component: RoutesAlias.ChangeLog,
  //   meta: {
  //     title: 'menus.plan.log',
  //     showTextBadge: `v${__APP_VERSION__}`,
  //     icon: '&#xe712;',
  //     keepAlive: false
  //   }
  // },
  {
    path: '/drivingSchoolConsole',
    name: 'DrivingSchoolConsole',
    meta: {
      title: 'menus.safeguard.title',
      icon: '&#xe816;',
      keepAlive: false,
      isHide: true,
      isHideTab: true
    },
    children: [
      {
        path: 'schoolConsole',
        name: 'SchoolConsole',
        component: RoutesAlias.DrivingSchoolConsole,
        meta: {
          title: '驾校管理',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      },
      {
        path: 'add',
        name: 'Add',
        component: RoutesAlias.addDrivingSchool,
        meta: {
          title: '驾校管理',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      },
      {
        path: 'set',
        name: 'Set',
        component: RoutesAlias.setDrivingSchool,
        meta: {
          title: '驾校管理',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      }
    ]
  },
  {
    id: 2,
    path: '/drivingschool',
    component: RoutesAlias.Home,
    name: 'drivingschool',
    meta: { title: '驾校', icon: '&#xe8a7;', keepAlive: false },
    children: [
      {
        id: 121,
        path: 'DrivingschoolManagement',
        name: 'DrivingschoolManagement',
        component: RoutesAlias.DrivingschoolManagement,
        meta: { title: '驾校设置', keepAlive: false }
      },
      {
        id: 122,
        path: 'Drivingschool_class',
        name: 'Drivingschool_class',
        component: RoutesAlias.Drivingschool_class,
        meta: { title: '学员班型', keepAlive: false }
      },
      {
        id: 123,
        path: 'exam_related',
        name: 'exam_related',
        component: RoutesAlias.exam_related,
        meta: { title: '考试相关', keepAlive: false }
      },
      {
        path: 'question_bank_type',
        name: 'question_bank_type',
        component: RoutesAlias.question_bank_type,
        meta: { title: '车型分类', keepAlive: false, isHide: true, isHideTab: true }
      },
      {
        path: 'question_bank_type_baoming',
        name: 'question_bank_type_baoming',
        component: RoutesAlias.question_bank_type_baoming,
        meta: { title: '报名地点', keepAlive: false, isHide: true, isHideTab: true }
      },
      {
        path: 'question_bank_type_zhaosheng',
        name: 'question_bank_type_zhaosheng',
        component: RoutesAlias.question_bank_type_zhaosheng,
        meta: { title: '招生员', keepAlive: false, isHide: true, isHideTab: true }
      },
      {
        path: 'question_bank_type_xunlianchang',
        name: 'question_bank_type_xunlianchang',
        component: RoutesAlias.question_bank_type_xunlianchang,
        meta: { title: '招生员', keepAlive: false, isHide: true, isHideTab: true }
      },
      {
        path: 'question_bank_type_jiaolian',
        name: 'question_bank_type_jiaolian',
        component: RoutesAlias.question_bank_type_jiaolian,
        meta: { title: '教练管理', keepAlive: false, isHide: true, isHideTab: true }
      },
      {
        id: 124,
        path: 'evaluate',
        name: 'evaluate',
        component: RoutesAlias.evaluate,
        meta: { title: '评价管理', keepAlive: false }
      },
      // {
      //   path: 'memberPublish_details',
      //   name: 'MemberPublish_details',
      //   component: RoutesAlias.memberPublish_details,
      //   meta: { title: '兑换详情页', keepAlive: false, isHide: true, isHideTab: true }
      // },
      {
        path: 'user_quanyi_details',
        name: 'User_quanyi_details',
        component: RoutesAlias.user_quanyi_details,
        meta: { title: '会员权益详情页', keepAlive: false, isHide: true, isHideTab: true }
      }
    ]
  },
  {
    id: 3,
    path: '/decoration',
    name: 'Decoration',
    component: RoutesAlias.Home,
    meta: {
      title: '装修',
      icon: '&#xe8a4;',
      keepAlive: false
    },
    children: [
      {
        id: 131,
        path: 'driving_school_decoration',
        name: 'Driving_school_decoration',
        meta: {
          title: '驾校装修'
        },
        component: '',
        children: [
          {
            id: 1311,
            path: 'weapp_diy',
            name: 'Weapp_diy',
            component: RoutesAlias.WeAppDecoration,
            meta: {
              title: '移动端装修',
              keepAlive: false
            }
          },
          {
            id: 1312,
            path: 'pc_diy',
            name: 'PC_diy',
            component: RoutesAlias.PCDecoration,
            meta: {
              title: 'PC端装修',
              keepAlive: false
            }
          }
        ]
      },
      {
        id: 132,
        path: 'material_otherSetting',
        name: 'Material_otherSetting',
        component: RoutesAlias.Material_otherSetting,
        meta: {
          title: '其它设置'
        }
      },
      // {
      //   path: 'theme_page',
      //   name: 'Theme_page',
      //   meta: {
      //     title: '主题风格'
      //   }
      // },
      // {
      //   path: 'template_market',
      //   name: 'Template_market',
      //   meta: {
      //     title: '模板市场'
      //   }
      // },
      {
        id: 132,
        path: 'material_management',
        name: 'Material_management',
        component: RoutesAlias.MaterialCenter,
        meta: {
          title: '素材管理'
        }
      }
    ]
  },
  {
    id: 4,
    path: '/question_bank',
    name: 'question_bank',
    component: RoutesAlias.Home,
    meta: {
      title: '题库',
      icon: '&#xe860;',
      keepAlive: false
    },
    children: [
      {
        id: 141,
        path: 'question_list',
        name: 'question_list',
        component: RoutesAlias.question_list,
        meta: {
          title: '题库列表',
          keepAlive: false
        }
      },
      {
        id: 142,
        path: 'question',
        name: 'question',
        component: '',
        meta: {
          title: '常规考试',
          keepAlive: false
        },
        children: [
          {
            id: 1421,
            path: 'featured_question',
            name: 'Featured_question',
            component: RoutesAlias.FeaturedQuestion,
            meta: {
              title: '精选题库',
              keepAlive: false
            }
          },
          {
            id: 1426,
            path: 'exam_secret_papers',
            name: 'Exam_secret_papers',
            component: RoutesAlias.ExamSecretPapers,
            meta: {
              title: '考前密卷',
              keepAlive: false
            }
          },

          {
            id: 1423,
            path: 'skill_practice_question',
            name: 'Skill_practice_question',
            component: RoutesAlias.SkillPracticeQuestion,
            meta: {
              title: '技巧刷题',
              keepAlive: false
            }
          },
          {
            id: 1424,
            path: 'special_exercises',
            name: 'Special_exercises',
            component: RoutesAlias.SpecialExercises,
            meta: {
              title: '专项练习',
              keepAlive: false
            }
          },
          {
            id: 1425,
            path: 'chapter_exercises',
            name: 'Chapter_exercises',
            component: RoutesAlias.ChapterExercises,
            meta: {
              title: '章节练习',
              keepAlive: false
            }
          },
          {
            id: 1422,
            path: 'mock_exam',
            name: 'Mock_exam',
            component: RoutesAlias.MockExam,
            meta: {
              title: '模拟考试规则',
              keepAlive: false
            }
          }
        ]
      },
      {
        id: 143,
        path: 'icon_skill',
        name: 'Icon_skill',
        component: RoutesAlias.IconSkill,
        meta: {
          title: '图标技巧管理',
          keepAlive: false
        }
      },
      {
        id: 144,
        path: 'question_new_video',
        name: 'question_new_video',
        component: RoutesAlias.question_new_video,
        meta: {
          title: '视频课程管理',
          keepAlive: false
        }
      },
      {
        id: 146,
        path: 'image_text',
        name: 'image_text',
        component: RoutesAlias.image_text,
        meta: {
          title: '图文课程管理',
          keepAlive: false
        }
      },
      {
        id: 145,
        path: 'importRecords',
        name: 'importRecords',
        component: RoutesAlias.importRecords,
        meta: {
          title: '题库批量导入',
          keepAlive: false
        }
      }
    ]
  },
  {
    id: 5,
    path: '/result',
    name: 'Result',
    component: RoutesAlias.Home,
    meta: {
      title: '营销',
      icon: '&#xe715;',
      keepAlive: false
    },
    children: [
      {
        id: 151,
        path: 'distributioncenter_all',
        name: 'distributioncenter_all',
        component: RoutesAlias.distributioncenter_all,
        meta: {
          title: '营销概况',
          keepAlive: false
        }
      },
      {
        id: 152,
        path: 'distributioncenter',
        name: 'distributioncenter',
        meta: {
          title: '分销推广',
          keepAlive: false
        },
        children: [
          {
            id: 1521,
            path: 'distributioncenter_overview',
            name: 'distributioncenter_overview',
            component: RoutesAlias.distributioncenter_overview,
            meta: {
              title: '推广员管理',
              keepAlive: false
            }
          },
          // {
          //   id: 40102,
          //   path: 'distributioncenter_manage',
          //   name: 'distributioncenter_manage',
          //   component: RoutesAlias.distributioncenter_manage,
          //   meta: {
          //     title: '分销管理',
          //     keepAlive: false
          //   }
          // },
          {
            id: 1522,
            path: 'distributioncenter_goods',
            name: 'distributioncenter_goods',
            component: RoutesAlias.distributioncenter_goods,
            meta: {
              title: '推广商品',
              keepAlive: false
            }
          },
          {
            id: 1523,
            path: 'distributioncenter_order',
            name: 'distributioncenter_order',
            component: RoutesAlias.distributioncenter_order,
            meta: {
              title: '推广业绩',
              keepAlive: false
            }
          },
          {
            id: 1524,
            path: 'distributioncenter_setting',
            name: 'distributioncenter_setting',
            component: RoutesAlias.distributioncenter_setting,
            meta: {
              title: '推广设置',
              keepAlive: false
            }
          },
          {
            id: 1525,
            path: 'distributioncenter_leaval',
            name: 'distributioncenter_leaval',
            component: RoutesAlias.distributioncenter_leaval,
            meta: {
              title: '推广等级',
              keepAlive: false
            }
          },
          {
            id: 1525,
            path: 'withdrawal_history',
            name: 'withdrawal_history',
            component: RoutesAlias.withdrawal_history,
            meta: {
              title: '提现记录',
              keepAlive: false
            }
          }
        ]
      },
      {
        id: 153,
        path: '/coupon',
        name: 'Coupon',
        meta: {
          title: '优惠券',
          keepAlive: false
        },
        children: [
          {
            id: 1531,
            path: 'coupon1',
            name: 'coupon1',
            component: RoutesAlias.coupon_one,
            meta: {
              title: '优惠券列表',
              keepAlive: false
            }
          },
          {
            id: 1532,
            path: 'coupon2',
            name: 'coupon2',
            component: RoutesAlias.coupon_two,
            meta: {
              title: '领券记录',
              keepAlive: false
            }
          }
          // {
          //   path: 'coupon3',
          //   name: 'coupon3',
          //   component: RoutesAlias.coupon_three,
          //   meta: {
          //     title: '优惠卷3',
          //     keepAlive: false
          //   }
          // }
        ]
      },
      {
        id: 155,
        path: 'newCustomVip',
        name: 'newCustomVip',
        component: RoutesAlias.newCustomVip,
        meta: {
          title: '新客专享',
          keepAlive: false,
          isHide: true
        }
      },
      {
        id: 154,
        path: 'mentoringNewcomers',
        name: 'mentoringNewcomers',
        component: RoutesAlias.mentoringNewcomers,
        meta: {
          title: '老带新',
          keepAlive: false,
          isHide: true
        }
      },
      {
        id: 156,
        path: 'flashSaleEvent',
        name: 'flashSaleEvent',
        component: RoutesAlias.flashSaleEvent,
        meta: {
          title: '秒杀活动',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'saleEventRules',
        name: 'saleEventRules',
        component: RoutesAlias.saleEventRules,
        meta: {
          title: '秒杀规则',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'activeRules',
        name: 'activeRules',
        component: RoutesAlias.activeRules,
        meta: {
          title: '老带新活动规则',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'newRules',
        name: 'newRules',
        component: RoutesAlias.newRules,
        meta: {
          title: '活动规则',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'involvedRecord',
        name: 'involvedRecord',
        component: RoutesAlias.involvedRecord,
        meta: {
          title: '参与记录',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'formList',
        name: 'formList',
        component: RoutesAlias.formList,
        meta: {
          title: '表单',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'formCreate',
        name: 'formCreate',
        component: RoutesAlias.formCreate,
        meta: {
          title: '表单创建',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'live_course',
        name: 'LiveCourse',
        component: RoutesAlias.LiveCourse,
        meta: {
          title: '直播课程',
          keepAlive: false,
          isHide: true
        }
      }
    ]
  },
  {
    id: 6,
    path: '/order',
    name: 'Order',
    component: RoutesAlias.Home,
    meta: {
      title: '订单',
      icon: '&#xe8a4;',
      keepAlive: false
    },
    children: [
      {
        id: 161,
        path: 'viporder',
        name: 'viporder',
        component: RoutesAlias.viporder,
        meta: {
          title: '会员订单',
          keepAlive: false
        }
      },
      {
        id: 162,
        path: 'baomingorder',
        name: 'baomingorder',
        component: RoutesAlias.userorder,
        meta: {
          title: '班型订单',
          keepAlive: false
        }
      }
    ]
  },
  {
    id: 7,
    path: '/user_student',
    name: 'user_student',
    component: RoutesAlias.Home,
    meta: {
      title: '用户',
      icon: '&#xe81a;',
      keepAlive: false
    },
    children: [
      {
        id: 171,
        path: 'userguanli',
        name: 'userguanli',
        component: '',
        meta: {
          title: '用户管理',
          keepAlive: true
        },
        children: [
          {
            id: 1711,
            path: 'UserList',
            name: 'UserList',
            component: RoutesAlias.UserList,
            meta: {
              title: '用户列表',
              keepAlive: false
            }
          },
          {
            id: 1712,
            path: 'UserLabel',
            name: 'UserLabel',
            component: RoutesAlias.UserLabel,
            meta: {
              title: '用户标签',
              keepAlive: false
            }
          },
          {
            id: 1713,
            path: 'UserGrouping',
            name: 'UserGrouping',
            component: RoutesAlias.UserGrouping,
            meta: {
              title: '用户分组',
              keepAlive: false
            }
          }
        ]
      },
      {
        id: 172,
        path: 'StudentProfile',
        name: 'StudentProfile',
        component: RoutesAlias.StudentProfile,
        meta: {
          title: '学员档案',
          keepAlive: false
        }
      },
      {
        id: 173,
        path: 'member',
        name: 'member',
        component: '',
        meta: {
          title: '会员管理',
          keepAlive: true
        },
        children: [
          {
            id: 1731,
            path: 'ArticleList',
            name: 'ArticleList',
            component: RoutesAlias.MemberList,
            meta: {
              title: '会员列表',
              keepAlive: false
            }
          },
          {
            id: 1732,
            path: 'memberinterests',
            name: 'memberinterests',
            component: RoutesAlias.memberinterests,
            meta: {
              title: '会员权益',
              keepAlive: false
            }
          },
          {
            id: 1733,
            path: 'RedemptionCode',
            name: 'RedemptionCode',
            component: RoutesAlias.RedemptionCode,
            meta: {
              title: '兑换码',
              keepAlive: false
            }
          }
        ]
      },
      {
        path: 'UserDetails',
        name: 'UserDetails',
        component: RoutesAlias.UserDetails,
        meta: {
          title: '用户详情',
          keepAlive: false,
          isHide: true
        }
      },
      {
        path: 'memberPublish_details',
        name: 'memberPublish_details',
        component: RoutesAlias.memberPublish_details,
        meta: {
          title: '兑换详情页',
          keepAlive: false,
          isHide: true
        }
      }
    ]
  },
  {
    id: 8,
    path: '/safeguard',
    name: 'Safeguard',
    component: RoutesAlias.Home,
    meta: {
      title: '数据',
      icon: '&#xe816;',
      keepAlive: false
    },
    children: [
      {
        id: 181,
        path: 'data_console',
        name: 'Data_console',
        component: RoutesAlias.DataDashboard,
        meta: {
          title: '数据概况',
          keepAlive: false
        }
      },
      {
        id: 182,
        path: 'data_analysis',
        name: 'Data_analysis',
        component: RoutesAlias.DataAnalysis,
        meta: {
          title: '学习分析',
          keepAlive: false
        }
      },
      {
        id: 183,
        path: 'data_ecommerce',
        name: 'Data_ecommerce',
        component: RoutesAlias.DataEcommerce,
        meta: {
          title: '用户分析',
          keepAlive: false
        }
      },
      {
        id: 184,
        path: 'data_produce',
        name: 'Data_produce',
        component: RoutesAlias.DataProduce,
        meta: {
          title: '交易分析',
          keepAlive: false
        }
      },
      {
        id: 185,
        path: 'data_traffic',
        name: 'Data_traffic',
        component: RoutesAlias.DataTraffic,
        meta: {
          title: '流量分析',
          keepAlive: false
        }
      }
    ]
  },
  {
    id: 9,
    path: '/system',
    name: 'System',
    component: RoutesAlias.Home,
    meta: {
      title: '设置',
      icon: '&#xe7b9;',
      keepAlive: false
    },
    children: [
      {
        id: 191,
        path: 'settingindex',
        name: 'settingindex',
        component: '',
        meta: {
          title: '系统设置',
          keepAlive: false
        },
        children: [
          {
            id: 1911,
            path: 'foundationsetting',
            name: 'foundationsetting',
            component: RoutesAlias.foundationsetting,
            meta: {
              title: '基础设置',
              keepAlive: true
            }
          },
          {
            id: 1912,
            path: 'foundationkefu',
            name: 'foundationkefu',
            component: RoutesAlias.foundationkefu,
            meta: {
              title: '客服设置',
              keepAlive: true
            }
          },
          {
            id: 1914,
            path: 'otherSetting',
            name: 'otherSetting',
            component: RoutesAlias.otherSetting,
            meta: {
              title: '其它设置',
              keepAlive: true
            }
          },
          {
            id: 1915,
            path: 'sms_setting',
            name: 'SMS_setting',
            component: RoutesAlias.SMSSetting,
            meta: {
              title: '短信设置',
              keepAlive: true
            }
          },
          {
            id: 1913,
            path: 'bangzhuzhongxin',
            name: 'bangzhuzhongxin',
            component: RoutesAlias.bangzhuzhongxin,
            meta: {
              title: '帮助中心',
              keepAlive: true
            }
          }
        ]
      },
      {
        id: 192,
        path: 'savesetting',
        name: 'savesetting',
        component: '',
        meta: {
          title: '日志管理',
          keepAlive: true
        },
        children: [
          {
            id: 1921,
            path: 'saverizhi',
            name: 'saverizhi',
            component: RoutesAlias.saverizhi,
            meta: {
              title: '登录日志',
              keepAlive: true
            }
          },
          {
            id: 1922,
            path: 'savecaozuorizhi',
            name: 'savecaozuorizhi',
            component: RoutesAlias.savecaozuorizhi,
            meta: {
              title: '操作日志',
              keepAlive: true
            }
          }
        ]
      },
      {
        id: 193,
        name: 'User',
        path: '/user',
        meta: {
          title: '权限管理',
          keepAlive: false
        },
        children: [
          {
            id: 1931,
            path: 'account',
            name: 'Account',
            component: RoutesAlias.Account,
            meta: {
              title: '员工管理',
              keepAlive: false
            }
          },
          {
            id: 1932,
            path: 'user',
            name: 'UserCenter',
            component: RoutesAlias.Role,
            meta: {
              title: '角色权限',
              keepAlive: false
            }
          }
        ]
      },
      {
        id: 194,
        path: '/change/log',
        name: 'ChangeLog',
        component: RoutesAlias.ChangeLog,
        meta: {
          title: 'menus.plan.log',
          // showTextBadge: `v${__APP_VERSION__}`,
          showTextBadge: `v1.0.1`,
          icon: '&#xe712;',
          keepAlive: false
        }
      }
    ]
  },
  {
    path: '/pageDiy',
    name: 'PageDiy',
    meta: {
      title: '页面设置',
      icon: '&#xe816;',
      keepAlive: false,
      isHide: true,
      isHideTab: true
    },
    children: [
      {
        path: 'design',
        name: 'Design',
        component: RoutesAlias.PageDiy,
        meta: {
          title: '页面设计',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      }
    ]
  },
  {
    path: '/examPageDiy',
    name: 'ExamPageDiy',
    meta: {
      title: '页面设置',
      icon: '&#xe816;',
      keepAlive: false,
      isHide: true,
      isHideTab: true
    },
    children: [
      {
        path: 'examDesign',
        name: 'ExamDesign',
        component: RoutesAlias.ExamPageDiy,
        meta: {
          title: '页面设计',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      }
    ]
  },
  {
    path: '/pcPageDiy',
    name: 'PCPageDiy',
    meta: {
      title: '页面设置',
      icon: '&#xe816;',
      keepAlive: false,
      isHide: true,
      isHideTab: true
    },
    children: [
      {
        path: 'pcDesign',
        name: 'PCDesign',
        component: RoutesAlias.pc_page_diy,
        meta: {
          title: '页面设计',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      }
    ]
  },
  {
    path: '/userCenterPageDiy',
    name: 'UserCenterPageDiy',
    meta: {
      title: '页面设置',
      icon: '&#xe816;',
      keepAlive: false,
      isHide: true,
      isHideTab: true
    },
    children: [
      {
        path: 'userCenterDesign',
        name: 'UserCenterDesign',
        component: RoutesAlias.UserCenterPageDiy,
        meta: {
          title: '页面设计',
          keepAlive: false,
          isHide: true,
          isHideTab: true
        }
      }
    ]
  }
]